Thread.notify() awakens a thread monitoring the object. If more than one thread is monitoring, then only one is chosen. The thread chosen is arbitrary; thus it's usually safer to call notifyAll() instead.

<p>
  This rule is deprecated, use {rule:java:S2446} instead.
</p>
